{yun:}include file="$trainstyle/header.htm"{/yun} 
<script src="{yun:}$config.sy_weburl{/yun}/js/public.js?v={yun:}$config.cachecode{/yun}"></script>
<div class="clear"></div>

<div class="training_content training_w980">
	{yun:}include file="$trainstyle/left.htm"{/yun}
	<div class="right_column frt mt20">
    <div class="right_column_border">
      <div class="right_column_h1"><span class="right_column_h1_span flt">发布新闻</span></div>
	  <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
      <form name="myform" method="post" target="supportiframe" action="{yun:}$now_url{/yun}" class="layui-form" enctype="multipart/form-data" onsubmit="return checkpost();">
      <input type="hidden" name="id" value="{yun:}$row.id{/yun}" />
      <ul class="Basic_in">
        <li>
          <div  class="Basic_in_span"><font color="#FF0000">*</font> 新闻标题：</div>
          <div class="Basic_in_right">
            
            <div class="layui-form-item">
				<div class="layui-input-block">
				  <input type="text" name="title" id="title"  lay-verify="required" placeholder="请输入新闻标题" value="{yun:}$row.title{/yun}"  style="display:inline;width:322px;" autocomplete="off" class="layui-input input-text">
				</div>
			</div>
          </div>
        </li>

        <li>
          <div  class="Basic_in_span"><font color="#FF0000">*</font> 新闻内容：</div>
          <div class="Basic_in_right">
 			<script id="content" name="body" type="text/plain" style="width:500px; height:150px;"> {yun:}$row.body{/yun} </script>
          </div>
        </li>
        <input type="hidden" name="r_status" id="r_status" value="{yun:}$info.r_status{/yun}" />
        <li>
          <div  class="Basic_in_span">&nbsp;</div>
          <div class="Basic_in_right">
            <input type="submit" name="submit" value="提交" class="layui-btn layui-btn-normal">
          </div>
        </li>
      </ul>
      </form>
    </div>
  </div>
</div>
<style>
.layui-form-item {margin-bottom: 0px;clear: both;}
.layui-input-block {margin-left: 0px;}
.Basic_in_span {line-height: 38px;}
.layui-select-title{width:158px;}
.layui-form-select{width:158px;margin-right:5px;}
</style>
<script>
function checkpost(){
	var title=$("#title").val();
	if($.trim(title)==""){
		layer.msg("新闻标题不能为空！",2,8);return false;
	}

	var html = UE.getEditor('content').getContent();
	if($.trim(html)==""){
		layer.msg("新闻内容不能为空！",2,8);return false;
	}
}
</script>   
<script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.config.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/ueditor/ueditor.all.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script language="javascript">
	var editor = UE.getEditor('content',{
		toolbars:[[ 'Source','|', 'Undo', 'Redo','Bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'fontfamily', 'fontsize',  'forecolor', 'backcolor', 'removeformat', 'autotypeset', 'pasteplain', '|','insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|','simpleupload', '|', 'indent', '|','justifyleft', 'justifycenter', 'justifyright', 'justifyjustify']],wordCount:false,elementPathEnabled:false,initialFrameHeight:150
	});
</script>
<script language="javascript">
	layui.use(['form'], function(){
	});
</script>
{yun:}include file="$trainstyle/footer.htm"{/yun}
